#include <stdio.h>
#include <stdbool.h>
bool search(const int a[], int n, int key);
void show_temperatures(const int a[], int n);
int main(void)
{
    int temperatures[7][24] = { [3][3] = 11, [4][4] = 12, [5][6] = 32 };
    show_temperatures(temperatures[0], 7 * 24);
    int res = search(temperatures[0], 7 * 24, 32);
    printf("%d\n", res);
    return 0;
}
bool search(const int a[], int n, int key) {
    for (const int *p = a; p < a + n; p++)
        if (*p == key)
            return true;
    return false;
}
void show_temperatures(const int a[], int n) {
    int count = 1;
    for (const int *p = a; p < a + n; p++) {
        printf("%3d ", *p);
        if (!(count++ % 24))
            printf("\n");
    }
        
    printf("\n");
}